<?php
/**
 * POD
 *
 * ${license}
 *
 * @category	POD
 * @package		POD_Office_Document
 * @copyright	${copyright}
 * @license		${license}
 * @version		${$version}
 * @author		Ziv Perry (http://zivperry.com)
 */

abstract class POD_Office_Document extends DOMDocument {
	
	/**
	 * Main factory method for NS DOM elements
	 * @param string $customClass
	 * @param string $element
	 * @param mixed $value
	 * @return POD_Office_Element
	 */
	public function createPodElement($customClass, $element, $value = null) {
		$this->registerNodeClass('DOMElement', $customClass);
		return $this->createElement($element, $value);
	}
}